package com.ywd.materials.admin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单表实体类
 */
@Accessors(chain = true)
@Data
@Schema(description = "菜单表实体类")
public class AdminMenuTreeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "父级菜单ID(0表示父级)", defaultValue = "0")
    private Long pid;

    @Schema(description = "菜单类型")
    private String type;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "菜单排序", defaultValue = "0")
    private Long sort;

    @Schema(description = "权限标识")
    private String perms;

    @Schema(description = "菜单路由")
    private String paths;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "选中状态")
    private String selected;

    @Schema(description = "路由参数")
    private String params;

    @Schema(description = "是否缓存(0=否,1=是)", defaultValue = "0")
    private Integer isCache;

    @Schema(description = "是否展示(0=否,1=是)", defaultValue = "1")
    private Integer isShow;

    @Schema(description = "是否禁用(0=否,1=是)", defaultValue = "0")
    private Integer isDisable;

    @Schema(description = "创建时间")
    private String createTime;

    @Schema(description = "修改时间")
    private String updateTime;

    /**
     * 子菜单列表
     */
    @Schema(description = "子菜单列表")
    private List<AdminMenuTreeVo> children;

}